package com.qqtech.qquan.homemaking.model;


import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.frame.model.BaseDomain;

@SuppressWarnings("serial")
public class HomemakingPubitem extends BaseDomain{

	//columns START
    /** 名称 */
	private java.lang.String name;
    /** 类别id */
	private java.lang.Integer typeId;
    /** 状态:1-有效;2-失效 */
	private java.lang.Integer status;
    /** 单位 */
	private java.lang.String unit;
	
	/** 数量（不需要的赋值0） */
	private Integer quantity;
	
    /** 价格（这里是统一价格） */
	private BigDecimal price;
	
	//columns END
	public HomemakingPubitem(){
	}

	public HomemakingPubitem( java.lang.Integer id ){
		this.id = id;
	}

	public void setName(java.lang.String name) {
		this.name = name;
	}

	public java.lang.String getName() {
		return this.name;
	}
	
	public java.lang.Integer getTypeId() {
		return typeId;
	}

	public void setTypeId(java.lang.Integer typeId) {
		this.typeId = typeId;
	}

	public void setStatus(java.lang.Integer status) {
		this.status = status;
	}

	public java.lang.Integer getStatus() {
		return this.status;
	}
	
	public void setUnit(java.lang.String unit) {
		this.unit = unit;
	}

	public java.lang.String getUnit() {
		return this.unit;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
}

